/*
 * Custom class creates INSPECTION data type
 */
package com.example.wmuqrreader;

public class Inspection {
	
	//private variables
	int 	_id;		//db id
	boolean _foundOk;
	boolean _cleaned;
	boolean _replacedTie;
	boolean _recharged;
	boolean _newMount;
	String 	_otherNotes;
	String 	_officerName;
	String	_svDate;
	int 	_qr;		//QR number of inspected FE

	//Empty constructor
	public Inspection(){
	}
	
	//Constructor
	public Inspection(int id, boolean fo, boolean cl, boolean rt, boolean rc, boolean nm, String notes, String oN, String date, int qr){
		this._id = id;
		this._foundOk = false;
		this._cleaned = false;
		this._replacedTie = false;
		this._recharged = false;
		this._newMount = false;
		this._otherNotes = "";
		this._officerName = "";
		this._svDate = date;
		this._qr = qr;
	}
	
	//Constructor
	public Inspection(boolean fo, boolean cl, boolean rt, boolean rc, boolean nm, String notes, String oN, String date, int qr){
		this._foundOk = fo;
		this._cleaned = cl;
		this._replacedTie = rt;
		this._recharged = rc;
		this._newMount = nm;
		this._otherNotes = notes;
		this._officerName = oN;
		this._svDate = date;
		this._qr = qr;
	}
	
	public Inspection(int id, int fo, int cl, int rt, int rc, int nm, String notes, String oN, String date, int qr){
		this._id = id;
		this._foundOk = (fo == 0) ? false : true;
		this._cleaned = (cl == 0) ? false : true;
		this._replacedTie = (rt == 0) ? false : true;
		this._recharged = (rc == 0) ? false : true;
		this._newMount = (nm == 0) ? false : true;
		this._otherNotes = notes;
		this._officerName = oN;
		this._svDate = date;
		this._qr = qr;
	}

	public int get_id() {
		return _id;
	}

	public void set_id(int _id) {
		this._id = _id;
	}

	public boolean is_foundOk() {
		return _foundOk;
	}

	public void set_foundOk(boolean _foundOk) {
		this._foundOk = _foundOk;
	}

	public boolean is_cleaned() {
		return _cleaned;
	}

	public void set_cleaned(boolean _cleaned) {
		this._cleaned = _cleaned;
	}

	public boolean is_replacedTie() {
		return _replacedTie;
	}

	public void set_replacedTie(boolean _replacedTie) {
		this._replacedTie = _replacedTie;
	}

	public boolean is_recharged() {
		return _recharged;
	}

	public void set_recharged(boolean _recharged) {
		this._recharged = _recharged;
	}

	public boolean is_newMount() {
		return _newMount;
	}

	public void set_newMount(boolean _newMount) {
		this._newMount = _newMount;
	}

	public String get_otherNotes() {
		return _otherNotes;
	}

	public void set_otherNotes(String _otherNotes) {
		this._otherNotes = _otherNotes;
	}

	public String get_officerName() {
		return _officerName;
	}

	public void set_officerName(String _officerName) {
		this._officerName = _officerName;
	}

	public String get_svDate() {
		return _svDate;
	}

	public void set_svDate(String _svDate) {
		this._svDate = _svDate;
	}

	public int get_qr() {
		return _qr;
	}

	public void set_qr(int _qr) {
		this._qr = _qr;
	}
	
	

}
